package com.csii.mobilebanking.user;


import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;

/**
 * 通用Activity 用于log查看
 * @author Administrator
 *
 */
public class BaseActivity extends Activity {
	protected Class mImplClass;
	protected Context mImplContext;
	
	protected void onCreate(Bundle savedInstanceState, Context aImplContext,
			Class aImplClass) {
		super.onCreate(savedInstanceState);
		mImplClass = aImplClass;
    	mImplContext = aImplContext;
	}

	@Override
	protected void onStart() {
		super.onStart();
		Log.d(GlobalConstant.tag, mImplClass.getSimpleName() + "onStart()");
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		Log.d(GlobalConstant.tag, mImplClass.getSimpleName() + "onDestroy()");
	}

	@Override
	protected void onPause() {
		// HpToast.CancelMessage();
		super.onPause();
		Log.d(GlobalConstant.tag, mImplClass.getSimpleName() + "onPause()");
	}

	@Override
	public void onResume() {
		super.onResume();
		Log.d(GlobalConstant.tag, mImplClass.getSimpleName() + "onResume()");
	}

	@Override
	public void onStop() {
		super.onStop();
		Log.d(GlobalConstant.tag, mImplClass.getSimpleName() + "onStop()");
	}

	@Override
	public void onRestart() {
		super.onRestart();
		Log.d(GlobalConstant.tag, mImplClass.getSimpleName() + "onRestart()");
	}
}
